import {
    http4
} from "@/service/axios";

// 宽带列表接口
export function getBroadBandList(data) {
    return http4.post({
        url: "/user/net/bb/list/page",
        data,
    });
}

// 宽带新增接口
export function getAddBroadBand(data) {
    return http4.post({
        url: "/user/net/bb/add",
        data,
    });
}

// 宽带编辑接口
export function getEditBroadBand(data) {
    return http4.post({
        url: "/user/net/bb/edit",
        data,
    });
}

// 宽带移除接口
export function getDeleteBroadBand(data) {
    return http4.post({
        url: `/user/net/bb/remove/${data}`,
        data,
    });
}

// 宽带导出
export function getExportBroadBand(data) {
    return http4.post({
        url: "/user/net/bb/export",
        data,
        responseType: "blob",
    });
}

// 下载宽带信息导入模版接口
export function getBroadBandDownload(data) {
    return http4.get({
        url: "/user/net/bb/import/template/download",
        data,
        responseType: "blob",
    });
}

// 宽带批量编辑状态接口
export function getStatusBroadBand({
    data,
    status
}) {
    return http4.post({
        url: `/user/net/bb/batch/edit/${status}`,
        data,
    });
}